#include<iostream>
#include<sys/types.h>
#include<string>
#include<signal.h>

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        std::cout << "kill signum pid!!" << std::endl;
        return 1;
    }

    int signum = std::stoi(argv[1]);
    pid_t pid = std::stoi(argv[2]);

    int n = kill(pid, signum);
    if(n == 0)
    {
        std::cout << "sent signum: " << signum << " to pid: " << pid << std::endl; 
    }


    return 0;

}